/* eslint-disable */
import echarts from "echarts";
import VideoComponent from './components/video/video.vue'
import {
  getOption
} from "./getOption";
export default {
  data() {
    return {
      channel: 0,
      value: "",
      time: "",
      tableData: [
        {
          field1: 1,
          field2: "2222",
          field3: "33333",
          field4: 0.45
        },
        {
          field1: 2,
          field2: "2222",
          field3: "33333",
          field4: 0.55
        },
        {
          field1: 3,
          field2: "2222",
          field3: "33333",
          field4: 0.88
        }
      ]
    };
  },
  mounted() {
    this.initEcharts();
  },
  methods: {
    initEcharts() {
      let echart = echarts.init(this.$refs.echartDiv);
      echart.setOption(getOption());
    },
    expandVideo() {
      this.$dialog.show(VideoComponent,{title: '查看视频'},{url: 'http://wwww.baidu.com'})
    }
  }
};
